home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
csh4.zip
/
PWD.C
< prev
next >
Wrap
C/C++ Source or Header
|
1985-09-03
|
268b
|
19 lines
#define NULL (void *)0
pwd(argc,argv)
char *argv[];
{
char *getcwd();
register char *dir;
if (!(dir = getcwd(NULL,256)))
{
perror("pwd");
return -1;
}
write(1,"\\",1);
write(1,dir,strlen(dir));
crlf();
if (dir)
free(dir);
return 0;
}